const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
    transpileDependencies: true,
    devServer: {
        proxy: {
            // '/api': {
            //     target: '<url>',
            //     ws: true,
            //     changeOrigin: true
            // },
            // '/foo': {
            //     target: '<other_url>'
            // }
            '/': {
                target: 'https://apis.netstart.cn/douguo',
                changeOrigin: true,
                ws: false,
                headers: {
                    // n: "CAIPUDAQUAN_BONIU",
                    // va: "mX2WlW8Ma7SaVFc5pl4KqD/zdUrZpt6wojBVFk6BxHek0/iYXPmEgbRFCzrhMMQgJ4+7faFt4v0XnPOjEyflbb/dYnmwI/vSCAaZbOtEiO/UpYAvLmhzGoxYB9fVJJH1/yekRA9PYII5bxx2rxl38OA+SUEtllYciu5SoXKuwOOhjE8DwdTZnWhq/Y1rQMQ76xjPMCd7ws6kCF+nuvIXmFTY2iRIFjWqFBxEMY4skfM=",
                    // "content-type": "application/json; charset=utf-8",
                    // 'Access-Control-Allow-Origin': '*'
                },
                // JSON: { "vs": "fP9cF12ac5pLoxTezqvrapvgfuGbSpdyUPYpm6xKTATVFR6ivHQDXm8n16SnP5cyrQkv309U37gC02jFYqT+KL/0+ieytgThXJBDwFmIbf4xdcIp7SFk6hvZ2H8Hzc5Q" },
            },
            // '/tpc': {
            //     target: 'http://tpc.shandongjuliang.com/api.php/news/index',
            //     changeOrigin: true,
            //     ws: false,
            //     headers: {
            //         "Content-Type": "application/json;charset=UTF-8"
            //     },
            // },
        }
    }
})